package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tmeone.erpone.entity.TPrinter;
import com.tmeone.erpone.mapper.TPrinterMapper;
import com.tmeone.erpone.service.ITPrinterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TPrinterServiceImpl extends ServiceImpl<TPrinterMapper, TPrinter> implements ITPrinterService {
    @Autowired
    private TPrinterMapper printerMapper;

    @Override
    public IPage<TPrinter> pageTPrinters(IPage<TPrinter> page) {
        return printerMapper.pageTPrinters(page);
    }

    @Override
    public IPage<TPrinter> findPrinterBypNum(Page tPrinterPage, String search) {
        return printerMapper.findPrinterBypNum(tPrinterPage,search);
    }
}
